﻿using CatUtils.Utils.Currency.IoUtils;
using System;
using System.Windows.Forms;

namespace RabbitDownload.WebSite.Pixiv.PixivArt
{
    public partial class PixivArtBatchControl : UserControl
    {
        public PixivArtBatchControl()
        {
            InitializeComponent();
            PixivStaticValue.BlockComic = checkBox1.Checked;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            foreach (string line in richTextBox1.Lines)
            {
                ArtScanner.Start(line);
            }
        }

        private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {
            PixivStaticValue.BlockComic = checkBox1.Checked;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            new ArtScanner().StartWithList(FileHelper.ReadAllLine(FileHelper.SelectFile()));
        }

        private void button3_Click(object sender, EventArgs e)
        {
            new ArtHelper().InspectFile(FileHelper.SelectFile(), textboxOnlyCount1.Text);
        }

        private void button4_Click(object sender, EventArgs e)
        {
            new ArtHelper().InspectFloder(FloderHelper.SelectFloder(), textboxOnlyCount1.Text);
        }
    }
}